<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //1.箭头函数内部没有arguments
        let a = function() {
            console.log(arguments);
        }
        a(10, 20, 30);
        //2.箭头函数不能当构造函数
        let Person = () => {}
            // let p = new Person();
            // 3.箭头函数中的this指向外部作用域的this
        var c = () => {
            console.log(this);
        }
        var username = 'zhangshan';
        var obj = {
            userame: 'lisi',
            fn2: () => {
                console.log(this.username);
            },
            fn1: function() {
                console.log(this.username);
            }
        }
    </script>
</body>

</html>